package com.sinosoft.demo2;


import com.sinosoft.Demo2Application;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


@RunWith(SpringRunner.class)
@SpringBootTest(classes = Demo2Application.class)
public class YmlDemo {
    @Value("${customer.name}")
    private  String name;

    @Value("${customer.age}")
    private  Integer age;

    @Test
    public void demo1() {
        System.out.println(name+age);
    }
}
